package com.baseweb.webadmin.core.model.dao.impl;

import com.baseweb.webadmin.core.model.dao.LogDao;
import com.baseweb.webadmin.core.model.pojo.Log;
import org.mybatis.spring.support.SqlSessionDaoSupport;

import java.util.List;
import java.util.Map;

public class LogDaoImpl extends SqlSessionDaoSupport implements LogDao {

    @Override
        public List<Log> getLogsList(Map map) {
        return this.getSqlSession().selectList("com.baseweb.webadmin.core.model.dao.LogDao.getLogsList", map);
    }

    @Override
    public Integer getLogsCount(Map map) {
        return (Integer) this.getSqlSession().selectOne("com.baseweb.webadmin.core.model.dao.LogDao.getLogsCount", map);
    }
}
